package com.adou.multi.respository;

import java.util.Optional;

import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;

import com.adou.multi.domain.entiry.Product;

public interface ProductRespository extends CrudRepository<Product, Long>, JpaSpecificationExecutor<Product>{
	@Query("select p from Product p where p.id = :id")
	Optional<Product> findById(int id);
}
